package com.rou.im.framework.core.session;


import com.rou.im.framework.core.session.repository.SessionRepository;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public class SessionManager {

    private SessionRepository repository;

    public SessionManager(SessionRepository repository) {
        this.repository = repository;
    }

    public Session createSession(Integer cid, Session session) {
        repository.add(cid, session);
        return session;
    }

    public void removeSession(Integer cid) {
        repository.remove(cid);
    }


}
